package one.stand.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import one.stand.aop.ApiController;
import one.stand.model.ResultModel;
import one.stand.request.CompanyAccountRequest;
import one.stand.response.CompanyAccountResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: QIK
 * @CreateDate: 2019/5/13 17:29
 */
@RequestMapping("crmPc/companyAccount")
@RestController
@Api(description = "小程序账号信息",tags="小程序账号信息")
public class CompanyAccountController extends BaseController {

    @ApiOperation(value = "获取小程序账号列表")
    @ApiController(isLogin = true,isBoss = true,paramClass = CompanyAccountRequest.class)
    @PostMapping("getCompanyAccountList")
    public ResultModel<List<CompanyAccountResponse>> getCompanyAccountList(@RequestAttribute CompanyAccountRequest request){
        return crmFegin.getCompanyAccountList(request);
    }
}
